using System;

namespace DesertPaintLab
{
	public class Reagent
	{ 
		string name;
		bool isCatalyst = false;
		PaintColor color;
		
		public bool IsCatalyst
		{
			get
			{
				return isCatalyst;	
			}
		}
		
		public PaintColor Color
		{
			get
			{
				return color;	
			}
		}
		
		public string Name
		{
			get
			{
				return name;	
			}
		}
		
		public Reagent(string name)
		{
			this.name = name;
			isCatalyst = true;
		}
		
		public Reagent(string name, byte red, byte green, byte blue)
		{
			color = new PaintColor(red, green, blue);
			this.name = name;
		}
		
		public override string ToString()
		{
			if (isCatalyst)
			{
				return "[" + name + ", catalyst]";
			}
			else
			{
				return "[" + name + ", " + color.ToString() + "]";
			}
		}
		
		
	}
}

